<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	<link href="static/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet"></link>
	<link href="static/css/wall.css" type="text/css" rel="stylesheet"></link>
</head>
<body class="body">
	<%@ include file="top.jsp"%>
	<div class="container">
		<div class="row" style="padding-top:60px">
			<jsp:include page="left.jsp">
				<jsp:param value="data" name="tag"/>
			</jsp:include>
			<div class="span9" style="padding:0px">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
							<li class="active">
								<a href="document.html">
									<i class="icon-folder-open"></i>
									资料
								</a>
							</li>
							<li class="pull-right">
								<i class="icon-plus"></i>
								<a class="link-black" href="data.jspx?m=new">分享新资料</a>
							</li>
						</ul>
				<div class="wall" style="margin-bottom:20px;">
					<c:forEach items="${requestScope.dataList.result}" var="data">
						<blockquote>
							<h4>
								<a href="data.jspx?m=information&&id=${data.id}">${data.title }</a>
							</h4>
							<p style="font-size:14px;line-height:1.5;">${data.describe}</p>
							<small>${data.member.name }发布于${data.time}</small>
							<!-- 时间的做法通用 修改下DateUtil中的函数-->
							<a title="编辑" href="data.jspx?m=edit&&id=${data.id}">
								<i class="icon-pencil"></i>
							</a>
							<a title="删除" href="data.jspx?m=del&&id=${data.id}">
								<i class="icon-trash"></i>
							</a>
						</blockquote>
					</c:forEach>
					<div class="pagination pull-right">
						<ul>
							<li>
								<a href="data.jspx?m=show&&p=1">首页</a>
							</li>
							<li class="active">
								<a href="data.jspx?m=show&&p=${dataList.pageNum - 1}">上一页</a>
							</li>
							<li>
								<a href="data.jspx?m=show&&p=${dataList.pageNum + 1}">下一页</a>
							</li>
							<li>
								<a href="data.jspx?m=show&&p=${dataList.totalPages}">尾页</a>
							</li>
						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>